const baseURL = 'http://localhost:8080/api/v1';
function myAjax(type, url, data, callback) {
    $.ajax({
        type: type,
        url: baseURL + url,
        data: data,
        success: function (resData) {
            if (resData.code !== 200) return;
            callback(resData);
        }
    })
}